<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="ThemeBucket">
    <link rel="shortcut icon" href="#" type="image/png">
    <title>Dynamic Table</title>
    <link href="/public/js/iCheck/skins/minimal/blue.css" rel="stylesheet">
    <link href="/public/js/advanced-datatable/css/demo_page.css" rel="stylesheet" />
    <link href="/public/js/advanced-datatable/css/demo_table.css" rel="stylesheet" />
    <link rel="stylesheet" href="/public/js/data-tables/DT_bootstrap.css" />
    <?php $this->load->view('library/header');?>
</head>
<body class="sticky-header">
<section>
    <?php $this->load->view('library/left');?>
    <div class="main-content" >
        <?php $this->load->view('library/top');?>
        <div class="wrapper">
            <div class="row">
                <div class="col-sm-12">
                    <section class="panel">
                        <header class="panel-heading">搜索</header>
                        <div class="panel-body" style="padding-bottom: 0;">
                            <form action="/Product/goods_web_volume_count" method="get">
                                    <div class="form-group col-lg-2">
                                        <select name="siteweb" class="form-control">
                                            <option value="-1">请选择网站</option>
                                            <?php foreach ($param_option['siteweb']['option'] as $k => $val) :?>
                                                <option <?php if($siteweb == $k){echo "selected = 'selected'";}?> value="<?php echo $k;?>"><?php echo $val;?></option>
                                            <?php endforeach;?>
                                        </select>
                                    </div>
                                    <div class="form-group col-lg-4">
                                        <div class="input-group input-large custom-date-range">
                                            <input type="text" autocomplete="off" class="form-control dpd1" name="add_time_start" 
                                            value="<?php if($param['add_time_start']){ echo date('Y-m-d H:i:s',$param['add_time_start']);}?>">
                                            <span class="input-group-addon">上传时间</span>
                                            <input type="text" autocomplete="off" class="form-control dpd2" name="add_time_end" 
                                            value="<?php if($param['add_time_start']){echo date('Y-m-d H:i:s',$param['add_time_end']);} ?>">
                                        </div>
                                    </div>
                                <div class="form-group col-lg-2"><button class="btn btn-info" type="submit">搜索</button></div>
                            </form>
                        </div>
                    </section>
                    <section class="panel">
                        <div class="panel-body">
                            <div class="adv-table">
                                <table class="display table table-bordered table-striped" id="dynamic-table" >
                                    <thead >
                                    <tr >
                                        <th width="6%" >编号</th >
                                        <th width="10%" >图片</th >
                                        <th width="20%" >数量(订单)</th >
                                        <th width="20%" >件数</th >
                                    </tr >
                                    </thead >
                                    <tbody >
                                    <?php if($goods_count){?>
                                        <?php foreach ($goods_count as $item): ?>
                                            <tr class="gradeX" >
                                                <td ><?php echo $item['goods_sn']?></td >
                                                <td ><img style="width: 50%;" src="<?php echo $item['original_img']?>" alt=""></td >
                                                <td ><?php echo $item['count']?>(单)</td >
                                                <td ><?php echo $item['sum']?>(件)</td >
                                            </tr >
                                        <?php endforeach; ?>
                                    <?php } ?>
                                    </tbody >
                                </table >
                            </div>
                            <div class="row-fluid">
                                <div class="span6">
                                    <div class="dataTables_paginate paging_bootstrap pagination">
                                        <ul>
                                            <?php echo $pages;?>
                                        </ul>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row-fluid">
                            <div class="span6">
                                <div class="dataTables_paginate paging_bootstrap pagination">
                                    <ul>
                                        <li>
                                            <a href="<?php echo base_url('product/goods_web_volume_count/page') . "/";?><?php echo  $page;?><?php echo "?siteweb=$siteweb";?>" >&lt; 上一页</a>
                                        </li>
                                        <li>
                                            <a href="<?php echo base_url('product/goods_web_volume_count/page') . "/";?><?php echo  $page +2;?><?php echo "?siteweb=$siteweb";?>" > 下一页 &gt;</a>
                                        </li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                    </section>
                </div>
            </div>
        </div>
        <footer>
            2014 &copy; AdminEx by
        </footer>
    </div>
</section>
<?php $this->load->view('library/footer');?>
<script src="/public/js/iCheck/jquery.icheck.js"></script>
<script src="/public/js/icheck-init.js"></script>
<script src="/public/js/scripts.js"></script>
</body>
</html>
